<?php
namespace app\common\validate;

use think\Validate;

class IndustryExhibition extends Validate
{
    protected $rule = [
        'industry_id' => 'require|integer|>=:1',
        'name' => 'require',
        'logo' => 'require',
        'time' => 'require',
        'status' => 'require|in:0,1',
    ];

    protected $message = [
        'country_id' => '{%country_id_val}',
        'name' => '{%name_val}',
        'logo' => '{%logo_val}',
        'time' => '{%time_val}',
        'status' => '{%status_val}',
    ];

    protected $scene = [
        'add'   => [ 'industry_id', 'name'],
        'edit'  => [ 'industry_id', 'name'],
        'status' => ['status'],
    ];
}

